package xx.services.entity.inter;

import javax.ws.rs.FormParam;
import javax.ws.rs.PathParam;

/**
 * 评论回复服务接口
 * 
 * @Path (Constants.RESTFUL_ROOT_PATH + "/reply")
 * @author chenx
 */
public interface IReplyInterface
{
    /**
     * 为实体评论{comment_id}增加一条回复。
     * 
     * @POST
     * @Path ("/{comment_id}")
     * @param commentId
     * @param title
     * @param content
     * @return
     * @author dengjinye,2010-10-29
     */
    public String addReply(@PathParam("comment_id")
    long commentId, @FormParam("title")
    String title, @FormParam("content")
    String content);

    /**
     * 描述：1）此接口为受保护接口；2）修改回复{reply_id}的标题内容等。
     * 
     * @PUT
     * @Path ("/{reply_id}")
     * @param replyId
     * @param title
     * @param content
     * @param readed-@FormParam("readed")
     *            是否已读
     * @return
     * @author dengjinye,2010-10-29
     */
    public String updateReply(@PathParam("reply_id")
    long replyId, @FormParam("title")
    String title, @FormParam("content")
    String content,@FormParam("readed")
    boolean readed);

    /**
     * 删除回复{reply_ids}集
     * 
     * @DELETE
     * @Path ("/{reply_id}")
     * @param replyId
     *            多个ID用“_”连接起来
     * @return
     * @author dengjinye,2010-10-29
     */
    public String deleteReply(@PathParam("reply_id")
    String replyId);
}
